package cn.tulingxueyuan.controller;

import cn.tulingxueyuan.service.EmpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by 滨湖华为 on 2021/11/21.
 */
@Controller
public class EmpController {

    @Autowired
    EmpService empService;

    @RequestMapping("/test")
    public  String test(){
        return "forward:/index.jsp";
    }

    @RequestMapping("/hello")
    public  String hello(){
        System.out.print( empService.selectAll());
        return "/hello";
    }
}
